package com.example.shopproject.entity;



import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@AllArgsConstructor
@NoArgsConstructor
@Entity
@Data
@Table(name = "comment")
public class Comment {

    @Id
    private Integer commentId;

    private String commentTime;

    @OneToOne
    @JoinColumn(name = "UserId")
    private User user;

    private String commentText;



    @OneToOne
    @JoinColumn(name = "shopComment")
    private Shopcomment shopcomment;

    @OneToOne
    @JoinColumn(name = "userComment")
    private Usercomment usercomment;



//    private Integer commentLike;
//    private String commentGrade;

//    @OneToMany(mappedBy = "parentComment")
//    private List<Reply> replyList;
//
//    private Integer shopComment;
//    private Integer userComment;



//    @JsonRawValue
//    private String commentPicture;

}
